<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="Pub:hd" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css"/>
</head>
<body>
<div class="navBox">

    <div class="navTop">
        <a href="__APP__/Index/main/" target="frmright"><img src="__PUBLIC__/images/icohome.gif"/></a>
        <a href="javascript:void(0);" onclick='parent.window.location="__APP__/Index/logout/";'>
            <img src="__PUBLIC__/images/icoout.gif"/>
        </a>
    </div>

    <div style="position: relative; height: 1000px; overflow: hidden;">
        <div style="position: absolute; width: 100%" id="menu">


            <div class="navTitles">业务部</div>
            <ul class="navText">
                <li><a href="{:U('Custom/index')}" target="frmright" p="0">我的客户</a></li>
                <li><a href="{:U('Appointment/index')}" target="frmright">预约列表</a></li>
                <li><a href="__APP__/Custom/publist" target="frmright" p="0">公海客户</a></li>
                <li><a href="{:U('Custom/customnum')}" target="frmright" p="0"><span>工作记录</span></a></li>
                <li><a href="__APP__/Huashu" target="frmright" p="0">营销话术</a></li>
                <!-- <li><a href="{:U('Custom/index',array('level'=>2))}" target="frmright" p="0">意向客户</a></li>-->

                <!-- <li><a href="__APP__/Tongji" target="frmright" p="0">工作记录</a></li>-->
            </ul>






            <div class="navTitle">
                修改资料
            </div>
            <ul class="navText" style="display: none;">
                <li><a href="__APP__/gonggong/modify/" target="frmright" p="0">我的资料</a></li>
                <li><a href="__APP__/gonggong/index/" target="frmright" p="0">修改密码</a></li>

            </ul>



            <?php
if($admin){
  ?>
            <div class="navTitle">
                系统配置
            </div>
            <ul class="navText" style="display: none;">
                <li>
                    <a href="__APP__/xitong/index/" target="frmright" p="0">人员管理</a>
                </li>
                <li>
                   <a href="__APP__/custtype/index/" target="frmright" p="0">客户类型</a>
                </li>
                <li>
                    <a href="{:U('producttype/index')}" target="frmright" p="0">业务类型</a>
                </li>
                <li>
                    <a href="{:U('xitong/setconfig')}" target="frmright" p="0">站点配置</a>
                </li>

              <!--  <li>
                    <a href="__APP__/xitong/role/" target="frmright" p="0">角色管理</a>
                    <a href="__APP__/xitong/bumen/" target="frmright" p="0">部门管理</a>
                </li>-->


            </ul>

            <?php }?>


        </div>
        <div class="up">
            <span></span>
        </div>
        <div class="down">
            <span></span>
        </div>
    </div>
</div>
<script type="text/javascript">        var AP = '';
$(function () {
    if (AP != '') {
        $('*[p]').each(function () {
            var a = $(this).attr('p').split(',');
            for (var i = 0; i < a.length; i++) {
                if (AP.indexOf(',' + a[i] + ',') != -1) return;
            }
            $(this).remove();
        });
        $('.navText li').each(function () {
            if ($(this).find('a').length == 0) {
                $(this).remove();
            } else {
                var t = $.trim($(this).html());
                if (t.substring(0, 1) == '|') {
                    t = t.substring(1);
                }
                if (t.substring(t.length - 1, 1) == '|') {
                    t = t.substring(0, t.length - 1);
                }
                $(this).html(t);
            }
        });
        $('.navText').each(function () {
            if ($(this).find('li').length == 0) {
                $(this).prev('div').remove();
                $(this).remove();
            }
        });
    }
    $('.navTitles,.navTitle').click(function () {
        var css = $(this).attr('class');
        $('.navTitles').removeClass('navTitles').addClass('navTitle');
        $('ul').hide();
        $(this).removeClass()
        if (css == 'navTitles')
            $(this).addClass('navTitle').next('ul').hide();
        else
            $(this).addClass('navTitles').next('ul').show();

    });
    $(".up").mouseover(function () {
        $('#menu').animate({ top: 0 });
    });
    $(".down").mouseover(function () {
        var s = $(window).height() - $('.navTop').outerHeight();
        s -= $('#menu').outerHeight();
        if (s > 0) s = 0;
        $('#menu').animate({ top: s });
    });

});
</script>
</body>
</html>
